package com.tpy.mapper;

import com.tpy.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 达瓦里氏
 * @create 2021-10-26 20:38
 */
@Mapper
@Repository
public interface UserMapper {

    //查询所有用户
    List<User> queryUserList();

    //通过用户编号查询用户
    User queryUserById(int id);

    //添加用户
    int addUser(User user);

    //更新用户
    int updateUser(User user);

    //删除用户
    int deletedUserById(int id);
}
